using UnityEngine;

public class EnemyState_LangJianKe_站立 : EnemyStateBase_LangJianKe
{
	public override void OnEnter()
	{
		_Mono._Ani.Play("空手站立");
		_Mono._Rb2D.velocity = Vector2.zero;
		_Timer = 0.3f + Random.value * 2.5f;
	}

	public override void OnExit()
	{
	}

	public override void OnUpdate()
	{
		_Timer -= Time.deltaTime;
		if (_Mono._Is追击中)
		{
			_Mono.ChangeState(StateType_Enemy_XiaoGuai.追击);
		}
		if (_Timer <= 0f)
		{
			_Mono.ChangeState(StateType_Enemy_XiaoGuai.散步);
		}
	}
}
